package com.erp.erp_entitys.WjInfo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 * 文件信息
 */
public class WjInfoEntity implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 文件名称
     */
    private String name;

    /**
     * 文件路径
     */
    private String path;

    /**
     * 上传时间
     */
    private Date uptime;

    /**
     * 所属文件目录
     */
    private String wjCatalogCode;

    /**
     * 上传者
     */
    private Integer upuser;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public String getWjCatalogCode() {
        return wjCatalogCode;
    }

    public void setWjCatalogCode(String wjCatalogCode) {
        this.wjCatalogCode = wjCatalogCode;
    }

    public Integer getUpuser() {
        return upuser;
    }

    public void setUpuser(Integer upuser) {
        this.upuser = upuser;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WjInfoEntity other = (WjInfoEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPath() == null ? other.getPath() == null : this.getPath().equals(other.getPath()))
            && (this.getUptime() == null ? other.getUptime() == null : this.getUptime().equals(other.getUptime()))
            && (this.getWjCatalogCode() == null ? other.getWjCatalogCode() == null : this.getWjCatalogCode().equals(other.getWjCatalogCode()))
            && (this.getUpuser() == null ? other.getUpuser() == null : this.getUpuser().equals(other.getUpuser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPath() == null) ? 0 : getPath().hashCode());
        result = prime * result + ((getUptime() == null) ? 0 : getUptime().hashCode());
        result = prime * result + ((getWjCatalogCode() == null) ? 0 : getWjCatalogCode().hashCode());
        result = prime * result + ((getUpuser() == null) ? 0 : getUpuser().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", path=").append(path);
        sb.append(", uptime=").append(uptime);
        sb.append(", wjCatalogCode=").append(wjCatalogCode);
        sb.append(", upuser=").append(upuser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}